<template>
    <div class="goods_container">

        <!--顶部的固定栏-->
        <mt-header title="商品的页面">
            <router-link to="/" slot="left">
                <mt-button icon="back">返回</mt-button>
            </router-link>
            <mt-button icon="more" slot="right"></mt-button>
        </mt-header>

        <!--中间部分的内容-->
        <div>
            <transition>
            <router-view></router-view>
            </transition>
        </div>



        <!--底部栏-->
        <nav class="mui-bar mui-bar-tab">

            <router-link class="mui-tab-item" to="/home">
                <span class="mui-icon mui-icon-home"></span>
                <span class="mui-tab-label">首页</span>
            </router-link>

            <router-link class="mui-tab-item" to="/products">
                    <span class="mui-icon mui-icon-extra mui-icon-extra-gift">
                        <span class="mui-badge">9</span>
                    </span>
                    <span class="mui-tab-label">产品</span>
            </router-link>

            <router-link class="mui-tab-item" to="/shopCart">
                <span class=" mui-icon mui-icon-extra mui-icon-extra-cart"></span>
                <span class="mui-tab-label">购物车</span>
            </router-link>

            <router-link class="mui-tab-item" to="/person">
                <span class="mui-icon mui-icon-contact"></span>
                <span class="mui-tab-label">个人中心</span>
            </router-link>
        </nav>



        <!--<div id="qita">-->


            <!--<h1>这个是购物组件</h1>-->
            <!--<router-link to="/login">login</router-link>-->
            <!--<router-link to="/register">register</router-link>-->

        <!--</div>-->

    </div>
</template>

<script>


//    window.addEventListener('touchstart', "span", {passive: false})
    import {Toast} from 'mint-ui';
    export default {
//        name: 'App',
        el: '#app',
        methods: {
            toa: function () {
                Toast({
                    message: '胖虎',
                    position: 'bottom',
                    duration: 1000,
                    iconClass: 'glyphicon glyphicon-ok'
                });
            }
        }


    }
</script>

<style  scoped>



    .v-enter{
        opacity:0;
        tansform:translatex(100%);
        position: absolute;
    }
    .v-leave-to{
        opacity:0;
        tansform:translatex(-100%);
        position: absolute;
    }
    .v-enter-active,
    .v-leave-active{
        transition: all 0.5s ease;
    }

    .goods_container{
        touch-action: none;
    }


</style>


